from apps.vadmin.op_drf.models import BaseModel
from django.db.models import CharField, IntegerField, TextField


class Kq_Maintain_infos(BaseModel):
    kqId = IntegerField(verbose_name='客户Id')
    compName = CharField(max_length=255, verbose_name='公司名称')
    name = CharField(max_length=32, verbose_name='联系人', blank=True, null=True)
    position = CharField(max_length=32, verbose_name='联系人职位', blank=True, null=True)
    phone = CharField(max_length=32, verbose_name='联系人电话', blank=True, null=True)
    purpose = CharField(max_length=64, verbose_name='拜访目的')
    extendDesc = TextField(verbose_name='拜访详情')
    maintainType = CharField(max_length=8, verbose_name='维护方式')
    score = IntegerField(verbose_name='拜访评分')

    class Meta:
        verbose_name = '客户维护中心信息表'
        verbose_name_plural = verbose_name

    def __str__(self):
        return f"{self.kqId}"
